from django.contrib import admin
from courses.models import CourseTag, Teacher, Course, CourseChapter, CourseLesson, CourseTagRelation, CourseNavRelation


@admin.register(CourseTag)
class CourseTagAdmin(admin.ModelAdmin):
    list_display = ['id', 'name']



@admin.register(Teacher)
class TeacherAdmin(admin.ModelAdmin):
    list_display = ['id', 'name', 'title']



@admin.register(Course)
class CourseAdmin(admin.ModelAdmin):
    list_display = ['id', 'name', 'teacher', 'price', 'original_price',
                     'students',]



@admin.register(CourseChapter)
class CourseChapterAdmin(admin.ModelAdmin):
    list_display = ['id', 'title', 'course']



@admin.register(CourseLesson)
class CourseLessonAdmin(admin.ModelAdmin):
    list_display = ['id', 'title', 'chapter']



@admin.register(CourseNavRelation)
class CourseNavRelationAdmin(admin.ModelAdmin):
    list_display = ['id', 'course', 'nav_category']


@admin.register(CourseTagRelation)
class CourseTagRelationAdmin(admin.ModelAdmin):
    list_display = ['id', 'course', 'tag']

